// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

// 导入ElementUI库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 全局注册
Vue.use(ElementUI);

// // 引入自定义的axis实例Axios
import http from "./request/index"

// 把自定义的axis的对象放到Vue的一个属性中
Vue.prototype.http = http; // 给Vue实例中添加一个http属性，指向axios的实例

// 导入路由表
import router from "./router"

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: router, // 把router对象设置给Vue实例
  components: { App },
  template: '<App/>'
})
